package com.ruoyi.hospital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@TableName("hospitals")  //该实体和医院表一一对应
public class Hospitals implements Serializable {
    @TableId()  //表中id自动增长
    @Excel(name="医院id")
    private String hospitalId;
    @Excel(name="医院名称")
    private String hospitalName;

    @Excel(name="医院等级")
    private String hospitalLevel;

    @Excel(name="医院地址")
    private String address;
    @Excel(name="医院电话")
    private String phone;
    @Excel(name="医院描述")
    private String description;
    private Date createTime;
    private Date updateTime;
    @TableLogic     //逻辑删除的字段
    private Integer deleted;


    public Hospitals(String hospitalId, String hospitalName, String hospitalLevel, String address, String phone, String description, Date createTime, Date updateTime, Integer deleted) {
        this.hospitalId = hospitalId;
        this.hospitalName = hospitalName;
        this.hospitalLevel = hospitalLevel;
        this.address = address;
        this.phone = phone;
        this.description = description;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.deleted = deleted;
    }

    public String getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getHospitalLevel() {
        return hospitalLevel;
    }

    public void setHospitalLevel(String hospitalLevel) {
        this.hospitalLevel = hospitalLevel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
